<template>
  <div>
    <el-row :gutter="20">
      <el-col :span="19"><div class="grid-content bg-purple"><h1>PDF管理中心</h1></div></el-col>
      <el-col :span="2"><el-button type="primary"  @click="uploadFile">上传<i class="el-icon-upload el-icon--right"></i></el-button></el-col>
      <el-col :span="2"><el-button type="primary" @click="gotolink" icon="el-icon-back">返回</el-button></el-col>
    </el-row>
    <div style="height: 10px"></div>
    <div class="pdfyl">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>

  import pdf from './pdf'


  // let pdfsize
  export default {
    components: {pdf},
    data () {
      return {
        pdfs: [],
      }
    },
    methods: {
      gotolink () {
        //点击跳转至上次浏览页面
        this.$router.go(-1)
        //指定跳转地址
        // this.$router.replace('/login')
      },
      uploadFile () {
        // 点击跳转至上次浏览页面
        // this.$router.go(-1)
        // 指定跳转地址
        this.$router.replace('/pdfview/upload')
      }
    },
  }
</script>

<style scoped>

</style>
